<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="vue1">
    <button v-on:click="add">点击</button>
</div>
</body>
<script src="./node_modules/vue/dist/vue.js"></script>
<script type="text/javascript">
    var vue1 = new Vue({
        el: "#vue1",
        data: {},
        methods:{
            add: function () {
                window.alert("233333333")
            }
        }
    });
</script>
</html>